package com.junzhiit.nengji.app.rabbitmq;

import com.junzhiit.nengji.model.Shop;

public interface RabbitMQService {

	/**
	 * 	异步 发送店铺营业流水记录至队列服务器
	 * @param id orders_goods.id
	 * @param content { 
	 * 	id: orders_goods.id, 
	 * 	ps: 商品让利得出的PS值, 
	 * 	areaId: area.id, 
	 * 	payAmount: 商品实际付款金额, 
	 * 	shopOrderNumber: orders.shop_order_number,
	 * 	shopId: shop.id,
	 * 	shopName: shop.name
	 * } 
	 */
	void sendToStoreBusiness(String id, String content);
	
	/**
	 *	 重试发送失败的消息记录
	 */
	void retrySendFailureMessage();
	
	/**
	 * 	更新门店信息后, 把更新后的门店信息发送至消息队列
	 * @param shop
	 */
	void shopUpdate(Shop shop);
}
